﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Data;
using InternetBLL;
using InternetModel;
using Newtonsoft.Json;
namespace InternetUI.Controllers
{
    public class UsersController : Controller
    {
        // GET: Users
        public ActionResult Index()
        {
            return View();
        }
        UserBLL manage = new UserBLL();//实例化用户对象
        public string GetUsers(Users news)
        {
            string linq = JsonConvert.SerializeObject(manage.UsersEnter(news));
           List<Users> list=JsonConvert.DeserializeObject<List<Users>>(linq) ;
            
            return linq;
        }
    }
}